﻿<?xml version="1.0" encoding="utf-8"?>
<FieldTypes>
	<FieldType>
		<Field Name="TypeName">LoggedCommentField</Field>
		<Field Name="TypeDisplayName">Logged Comment Field</Field>
		<Field Name="TypeShortDescription">Logged Comments Text</Field>
		<Field Name="ParentType">Note</Field>
		<Field Name="FieldTypeClass">Behemoth.SharePoint.LoggedCommentField.LoggedCommentField, Behemoth.SharePoint.LoggedCommentField, Version=1.0.101.0, Culture=neutral, PublicKeyToken=4c69e9d668ec2044</Field>
		<Field Name="ShowInListCreate">TRUE</Field>
		<Field Name="ShowInSurveyCreate">TRUE</Field>
		<Field Name="UserCreatable">TRUE</Field>
		<Field Name="ShowInDocumentLibraryCreate">TRUE</Field>
		<Field Name="ShowInColumnTemplateCreate">TRUE</Field>
		<Field Name="Sortable">FALSE</Field>
		<Field Name="Filterable">FALSE</Field>
		<!-- <Field Name="SQLType">ntext</Field>
		<Field Name="InternalType"></Field>
		<Field Name="BaseRenderingTypeName">LoggedCommentField</Field>
		<Field Name="AllowBaseTypeRendering">FALSE</Field>
		<Field Name="FieldTypeClass">96b62e6e-337c-45f3-8fb3-7446c8576fdf</Field 
			  It looks like WSP Builder Extensions May not do the guid substitutions that VSeWSS can
		-->
		<RenderPattern Name="HeaderPattern">
			<HTML><![CDATA[<script type="text/javascript" language="javascript" src="/_layouts/FixPresence.js"></script>]]></HTML>
			<FieldSwitch>
				<Expr>
					<GetVar Name="Filter" />
				</Expr>
				<Case Value="1">
					<FieldSwitch>
						<Expr>
							<Property Select="aggregation" />
						</Expr>
						<Case Value="merge">
							<HTML><![CDATA[<INPUT TYPE="TEXT" MAXLENGTH="256" CLASS="ms-input" ID="diidFilter]]></HTML>
							<Property Select="Name" />
							<HTML><![CDATA[" OnKeyPress='FilterNoteField("]]></HTML>
							<GetVar Name="View" />
							<HTML><![CDATA[",]]></HTML>
							<ScriptQuote>
								<Property Select="Name" URLEncode="TRUE" />
							</ScriptQuote>
							<HTML><![CDATA[,this.value, event.keyCode);' OnChange='FilterNoteField("]]></HTML>
							<GetVar Name="View" />
							<HTML><![CDATA[",]]></HTML>
							<ScriptQuote>
								<Property Select="Name" URLEncode="TRUE" />
							</ScriptQuote>
							<HTML><![CDATA[,this.value, 13);'/>]]></HTML>
							<HTML><![CDATA[<BR>]]></HTML>
						</Case>
						<Default />
					</FieldSwitch>
				</Case>
				<Default />
			</FieldSwitch>
			<Property Select="DisplayName" HTMLEncode="TRUE" />
			<HTML><![CDATA[<IMG SRC="]]></HTML>
			<FieldFilterImageURL />
			<HTML><![CDATA[" BORDER=0 ALT=]]></HTML>
			<HTML>$Resources:core,550;</HTML>
			<HTML><![CDATA[>]]></HTML>
		</RenderPattern>
		<RenderPattern Name="DisplayPattern">
			<Switch>
				<Expr>
					<Property Select="DebugMode" />
				</Expr>
				<Case Value="TRUE">
					<HTML><![CDATA[<div>RichText: ]]></HTML>
					<Property Select="RichText" />
					<HTML><![CDATA[</div><div>EditRichText: ]]></HTML>
					<Property Select="EditRichText" />
					<HTML><![CDATA[</div><div>RichTextMode: ]]></HTML>
					<Property Select="RichTextMode" />
					<HTML><![CDATA[</div><div>EditRichTextMode: ]]></HTML>
					<Property Select="EditRichTextMode" />
					<HTML><![CDATA[</div><div>RichTextMode2: ]]></HTML>
					<Property Select="RichTextMode2" />
					<HTML><![CDATA[</div><div>NumberOfLines: ]]></HTML>
					<Property Select="NumberOfLines" />
					<HTML><![CDATA[</div><div>HistoryDisplayPosition: ]]></HTML>
					<Property Select="HistoryDisplayPosition" />
					<HTML><![CDATA[</div><div>HistoryDisplaySortOrder: ]]></HTML>
					<Property Select="HistoryDisplaySortOrder" />
					<HTML><![CDATA[</div><div>HeaderFormatRichText: ]]></HTML>
					<Property Select="HeaderFormatRichText" HTMLEncode="TRUE" />
					<!-- HTML><![CDATA[</div><div>HeaderFormatPlainText: ]]></HTML>
					<Property Select="HeaderFormatPlainText" / -->
					<HTML><![CDATA[</div><div>AllowHyperlink: ]]></HTML>
					<Property Select="AllowHyperlink" />
					<HTML><![CDATA[</div><div>DisplayName: ]]></HTML>
					<Property Select="DisplayName" />
					<HTML><![CDATA[</div>]]></HTML>
				</Case>
				<Default></Default>
			</Switch>
			<HTML><![CDATA[<div class="LoggedCommentsText" dir="]]></HTML>
			<Property Select="Direction" HTMLEncode="TRUE" />
			<HTML><![CDATA[">]]></HTML>
			<Column SubColumnNumber="2" HTMLEncode="FALSE" AutoHyperLinkNoEncoding="TRUE" />
			<HTML><![CDATA[</div>]]></HTML>
		</RenderPattern>
		<RenderPattern Name="EditPattern">
			<Switch>
				<Expr>
					<Property Select="EditRichText" />
				</Expr>
				<Case Value="TRUE">
					<HTML><![CDATA[<SCRIPT>fld = new RichTextField(frm,]]></HTML>
					<ScriptQuote>
						<Property Select="Name" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Property Select="DisplayName" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Column />
					</ScriptQuote>
					<HTML>);</HTML>
					<Switch>
						<Expr>
							<Property Select="Direction" HTMLEncode="TRUE" />
						</Expr>
						<Case Value="LTR">fld.stDirection = "ltr";</Case>
						<Case Value="RTL">fld.stDirection = "rtl";</Case>
					</Switch>
					<Switch>
						<Expr>
							<Property Select="AllowHyperlink" />
						</Expr>
						<Case Value="TRUE">fld.fAllowHyperlink = true;</Case>
						<Default>fld.fAllowHyperlink = false;</Default>
					</Switch>
					<HTML>fld.WebLocale = </HTML>
					<ScriptQuote>
						<ProjectProperty Select="Locale" />
					</ScriptQuote>
					<HTML>;</HTML>
					<Switch>
						<Expr>
							<Property Select="NumberOfLines" />
						</Expr>
						<Case Value="">fld.stNumLines = "6";</Case>
						<Default>
							<HTML>fld.stNumLines = </HTML>
							<ScriptQuote>
								<Property Select="NumberOfLines" />
							</ScriptQuote>
							<HTML>;</HTML>
						</Default>
					</Switch>
					<Switch>
						<Expr>
							<Property Select="Required" />
						</Expr>
						<Case Value="TRUE">fld.fRequired = true;</Case>
					</Switch>
					<HTML><![CDATA[fld.IMEMode="]]></HTML>
					<Switch>
						<Expr>
							<Property Select="Type" />
						</Expr>
						<Case Value="Lookup">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="DateTime">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="GridChoice">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Calculated">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Currency">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Number">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="User">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Boolean">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Default>
							<Property Select="IMEMode" HTMLEncode="TRUE" />
						</Default>
					</Switch>
					<HTML><![CDATA[";]]></HTML>
					<HTML><![CDATA[fld.BuildUI();</SCRIPT>]]></HTML>
				</Case>
				<Default>
					<HTML><![CDATA[<SCRIPT>fld = new NoteField(frm,]]></HTML>
					<ScriptQuote>
						<Property Select="Name" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Property Select="DisplayName" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Column />
					</ScriptQuote>
					<HTML>);</HTML>
					<Switch>
						<Expr>
							<Property Select="NumberOfLines" />
						</Expr>
						<Case Value="">fld.stNumLines = "6";</Case>
						<Default>
							<HTML>fld.stNumLines = </HTML>
							<ScriptQuote>
								<Property Select="NumberOfLines" />
							</ScriptQuote>
							<HTML>;</HTML>
						</Default>
					</Switch>
					<Switch>
						<Expr>
							<Property Select="Required" />
						</Expr>
						<Case Value="TRUE">fld.fRequired = true;</Case>
					</Switch>
					<HTML><![CDATA[fld.IMEMode="]]></HTML>
					<Switch>
						<Expr>
							<Property Select="Type" />
						</Expr>
						<Case Value="Lookup">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="DateTime">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="GridChoice">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Calculated">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Currency">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Number">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="User">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Boolean">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Default>
							<Property Select="IMEMode" HTMLEncode="TRUE" />
						</Default>
					</Switch>
					<HTML><![CDATA[";]]></HTML>
					<HTML><![CDATA[fld.BuildUI();</SCRIPT>]]></HTML>
				</Default>
			</Switch>
		</RenderPattern>
		<RenderPattern Name="NewPattern" DisplayName="NewPattern">
			<Switch>
				<Expr>
					<Property Select="EditRichText" />
				</Expr>
				<Case Value="TRUE">
					<HTML><![CDATA[<SCRIPT>fld = new RichTextField(frm,]]></HTML>
					<ScriptQuote>
						<Property Select="Name" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Property Select="DisplayName" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Column />
					</ScriptQuote>
					<HTML>);</HTML>
					<Switch>
						<Expr>
							<Property Select="Direction" HTMLEncode="TRUE" />
						</Expr>
						<Case Value="LTR">fld.stDirection = "ltr";</Case>
						<Case Value="RTL">fld.stDirection = "rtl";</Case>
					</Switch>
					<Switch>
						<Expr>
							<Property Select="AllowHyperlink" />
						</Expr>
						<Case Value="TRUE">fld.fAllowHyperlink = true;</Case>
						<Default>fld.fAllowHyperlink = false;</Default>
					</Switch>
					<HTML>fld.WebLocale = </HTML>
					<ScriptQuote>
						<ProjectProperty Select="Locale" />
					</ScriptQuote>
					<HTML>;</HTML>
					<Switch>
						<Expr>
							<Property Select="NumberOfLines" />
						</Expr>
						<Case Value="">fld.stNumLines = "6";</Case>
						<Default>
							<HTML>fld.stNumLines = </HTML>
							<ScriptQuote>
								<Property Select="NumberOfLines" />
							</ScriptQuote>
							<HTML>;</HTML>
						</Default>
					</Switch>
					<Switch>
						<Expr>
							<Property Select="Required" />
						</Expr>
						<Case Value="TRUE">fld.fRequired = true;</Case>
					</Switch>
					<HTML><![CDATA[fld.IMEMode="]]></HTML>
					<Switch>
						<Expr>
							<Property Select="Type" />
						</Expr>
						<Case Value="Lookup">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="DateTime">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="GridChoice">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Calculated">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Currency">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Number">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="User">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Boolean">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Default>
							<Property Select="IMEMode" HTMLEncode="TRUE" />
						</Default>
					</Switch>
					<HTML><![CDATA[";]]></HTML>
					<HTML><![CDATA[fld.BuildUI();</SCRIPT>]]></HTML>
				</Case>
				<Default>
					<HTML><![CDATA[<SCRIPT>fld = new NoteField(frm,]]></HTML>
					<ScriptQuote>
						<Property Select="Name" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Property Select="DisplayName" />
					</ScriptQuote>
					<HTML>,</HTML>
					<ScriptQuote>
						<Column />
					</ScriptQuote>
					<HTML>);</HTML>
					<Switch>
						<Expr>
							<Property Select="NumberOfLines" />
						</Expr>
						<Case Value="">fld.stNumLines = "6";</Case>
						<Default>
							<HTML>fld.stNumLines = </HTML>
							<ScriptQuote>
								<Property Select="NumberOfLines" />
							</ScriptQuote>
							<HTML>;</HTML>
						</Default>
					</Switch>
					<Switch>
						<Expr>
							<Property Select="Required" />
						</Expr>
						<Case Value="TRUE">fld.fRequired = true;</Case>
					</Switch>
					<HTML><![CDATA[fld.IMEMode="]]></HTML>
					<Switch>
						<Expr>
							<Property Select="Type" />
						</Expr>
						<Case Value="Lookup">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="DateTime">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="GridChoice">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Calculated">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Currency">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Number">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="User">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Case Value="Boolean">
							<HTML><![CDATA[inactive]]></HTML>
						</Case>
						<Default>
							<Property Select="IMEMode" HTMLEncode="TRUE" />
						</Default>
					</Switch>
					<HTML><![CDATA[";]]></HTML>
					<HTML><![CDATA[fld.BuildUI();</SCRIPT>]]></HTML>
				</Default>
			</Switch>
		</RenderPattern>
		<RenderPattern Name="PreviewDisplayPattern">
			<HTML><![CDATA[["]]></HTML>
			<Property Select="DisplayName" HTMLEncode="TRUE" />
			<HTML>"$Resources:core,fldtypes011;</HTML>
		</RenderPattern>
		<RenderPattern Name="PreviewEditPattern">
			<HTML><![CDATA[<textarea class="ms-long" cols="30" rows="6">"]]></HTML>
			<Property Select="DisplayName" HTMLEncode="TRUE" />
			<HTML>"$Resources:core,fldtypes012;</HTML>
			<HTML><![CDATA[</textarea>]]></HTML>
		</RenderPattern>
		<RenderPattern Name="PreviewNewPattern">
			<HTML><![CDATA[<textarea class="ms-long" cols="30" rows="6">"]]></HTML>
			<Property Select="DisplayName" HTMLEncode="TRUE" />
			<HTML>"$Resources:core,fldtypes012;</HTML>
			<HTML><![CDATA[</textarea>]]></HTML>
		</RenderPattern>
		<PropertySchema ShowInNewForm="true" ShowInEditForm="true" Hidden="false">
			<Fields>
				<Field Name="DebugMode" DisplayName="Show CAML Debug Info" Type="Boolean" Required="TRUE" Description="Check this box to show extended debugging information in the CAML DisplayPattern.">
					<Default>FALSE</Default>
				</Field>
				<Field Name="RichText" DisplayName="Allow Rich Text" Type="Boolean" Hidden="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" Required="TRUE" Description="">
					<Default>TRUE</Default>
				</Field>
				<Field Name="AllowHyperlink" DisplayName="Allow Hyperlinks" Type="Boolean" Required="TRUE" Hidden="TRUE" Description="Check this box to allow users to enter hyperlinks in comments.">
					<Default>TRUE</Default>
				</Field>
				<Field Name="RichTextMode" DisplayName="Rich Text Mode" Type="Choice" Hidden="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" Required="FALSE" Description="">
					<CHOICES>
						<CHOICE></CHOICE>
						<CHOICE>FullHtml</CHOICE>
						<CHOICE>Compatible</CHOICE>
						<CHOICE>HtmlAsXml</CHOICE>
					</CHOICES>
					<Default>FullHtml</Default>
				</Field>
				<Field Name="RichTextMode2" DisplayName="Specify the type of text to allow:" Type="Choice" Format="RadioButtons" FillInChoice="FALSE" Required="TRUE" Description="">
					<CHOICES>
						<CHOICE>Plain text</CHOICE>
						<CHOICE>Rich text (Bold, italics, text alignment)</CHOICE>
						<CHOICE>Enhanced rich text (Rich text with pictures, tables, and hyperlinks)</CHOICE>
					</CHOICES>
					<Default>Enhanced rich text (Rich text with pictures, tables, and hyperlinks)</Default>
				</Field>
				<Field Name="NumberOfLines" DisplayName="Number of Lines" Type="Number" Required="TRUE" Description="">
					<Default>6</Default>
				</Field>
				<Field Name="HistoryDisplayPosition" DisplayName="Show comment history on the Edit Item form:" Type="Choice" Format="RadioButtons" FillInChoice="FALSE" Required="TRUE" Description="">
					<CHOICES>
						<CHOICE>None</CHOICE>
						<CHOICE>Bottom</CHOICE>
						<CHOICE>Top</CHOICE>
					</CHOICES>
					<Default>Bottom</Default>
				</Field>
				<Field Name="HistoryDisplaySortOrder" DisplayName="When adding comments, place:" Type="Choice" Format="RadioButtons" FillInChoice="FALSE" Required="TRUE" Description="">
					<CHOICES>
						<CHOICE>Recent Messages at Top</CHOICE>
						<CHOICE>Recent Messages at Bottom</CHOICE>
					</CHOICES>
					<Default>Recent Messages at Top</Default>
				</Field>
				<Field Name="HeaderFormatRichText" DisplayName="Header Format (for Rich Text)" Type="Note" NumLines="2" RichText="TRUE" RichTextMode="FullHtml" IsolateStyles="TRUE" Sortable="FALSE" Required="TRUE" Description="">
					<Default>&lt;DIV class=LoggedCommentHistoryHeader style="FONT-WEIGHT: bold"&gt;Comment by {0} at {1}&lt;/DIV&gt;</Default>
				</Field>
				<Field Name="HeaderFormatPlainText" DisplayName="HeaderFormatPlainText" Type="Text" Required="FALSE" Hidden="TRUE" Description="Kept for legacy purposes, but no longer being used.">
					<Default></Default>
				</Field>
				<Field Name="PresenceIconPlacement" DisplayName="Presence Icon" Type="Choice" Format="RadioButtons" FillInChoice="FALSE" Required="TRUE" Description="">
					<CHOICES>
						<CHOICE>Before Link</CHOICE>
						<CHOICE>After Link</CHOICE>
					</CHOICES>
					<Default>Before Link</Default>
				</Field>
				<Field Name="EditRichText" DisplayName="Allow Rich Text in Editor" Type="Boolean" Hidden="FALSE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" Required="FALSE" Description="">
					<Default>TRUE</Default>
				</Field>
				<Field Name="EditRichTextMode" DisplayName="Rich Text Mode in Editor" Type="Choice" Hidden="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" Required="FALSE" Description="">
					<CHOICES>
						<CHOICE></CHOICE>
						<CHOICE>FullHtml</CHOICE>
						<CHOICE>Compatible</CHOICE>
						<CHOICE>HtmlAsXml</CHOICE>
					</CHOICES>
					<Default>FullHtml</Default>
				</Field>
				<Field Name="ImportCommentsStatus" DisplayName="Import Comments Status" Type="Choice" Hidden="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" Required="FALSE" Description="">
					<CHOICES>
						<CHOICE>NotStarted</CHOICE>
						<CHOICE>InProgress</CHOICE>
						<CHOICE>Done</CHOICE>
					</CHOICES>
					<Default>NotStarted</Default>
				</Field>
				<Field Name="ImportCommentsField" DisplayName="Import Comments Field" Type="Text" NumLines="1" Sortable="FALSE" Required="FALSE" Description="Provide the internal field name of a field in the list that contains standard Sharepoint version-based comments you wish to import into this field.">
					<Default></Default>
				</Field>
				<Field Name="NumSummaryComments" DisplayName="Summary Comment" Type="Number" Sortable="FALSE" Required="TRUE" Description="Number of recent comments appearing in the summary sub-column.">
					<Default>3</Default>
				</Field>
			</Fields>
		</PropertySchema>
	</FieldType>
</FieldTypes>